﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_BBS_AddBoard]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_BBS_AddBoard];
GO
CREATE PROCEDURE [dbo].[sproc_BBS_AddBoard]
    @catalog_id int,
    @title nvarchar(300),
    @content ntext,
    @boardtype bit
/*

==========================================
功能:    添加板块
参数:
    @catalog_id         :    分栏ID
    @title             :    板块名称
    @content         :    板块内容
    @boardtype        :    板块类型

==========================================

*/
AS
SET NOCOUNT ON

INSERT INTO uds_bbs_board 
    VALUES(@catalog_id,@title,@content,@boardtype)